package com.eattravel.mapper;

import com.eattravel.pojo.Commodity;
import com.eattravel.pojo.CommodityPicture;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommodityPictureMapper {
    List<CommodityPicture> findPictureByColl(String commodityId);

    /**
     * 根据商品的id去查询所对应的图片
     * @param id
     * @return
     */
    List<CommodityPicture> findPictureById(String id);

    /**
     * 根据商品的部分信息（id）进行查找对应的图片
     * @param commodity
     * @return
     */
    List<CommodityPicture> findPictureById(Commodity commodity);

}